<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/WEB-INF/jsp/importHead.jsp"%>
<%@ include file="/WEB-INF/jsp/importCommonCss.jsp"%>
<link rel="stylesheet" type="text/css" href="${basePath }/css/index-old.css" />
<style>
body.met-navfixed {
	margin: 0 auto;
	padding: 0;
	height: 100%;
	padding-top: 65px;
	min-height: 595px;
}

html {
	margin: 0 auto;
	padding: 0;
	height: 100%;
	min-height: 595px;
	position: relative;
}

html, body {
	margin: 0px;
	height: 100%;
}

body.met-navfixed>section.notice_list_met_11_1 {
	visibility: inherit;
	opacity: 1;
	transform: matrix(1, 0, 0, 1, 0, 0);
	background-color: #F5F5F5;
}

body.met-navfixed>section.notice_list_met_11_1 div.container.notice {
	height: auto;
	line-height: normal;
}

div.form-group>label.form-control-label {
	height: auto;
	line-height: normal;
}

footer.foot_info_met_16_1 {
	background-color: #F5F5F5;
	width: 100%;
}

.red {
	color: red;
}

form.form-horizontal button.btn{
    padding-left: 1.5em;
    padding-right: 1.5em;
    border-radius: 5px;
}

#errorMessageContent label.form-control-label {
    height: 2.573rem;
}
</style>

</head>

<body class="met-navfixed">
	<%@ include file="/WEB-INF/jsp/loginHeader.jsp"%>
	<section class="notice_list_met_11_1 text-xs-left" m-id="4">
	<div class="container notice clearfix" style="min-height: 532px; min-width: 600px;padding-top: 40px;padding-bottom: 40px;">
		<div class="col-xs-9 col-md-8 col-lg-7 col-xl-6">
			<form action="${basePath }/registerSave" method="post" id="registerForm" class="form-horizontal container">
				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						<span class="red">*</span>
						用户名：
					</label>
					<div class="col-xs-9">
						<input type="text" name="loginName" class="form-control" maxlength="20" value="${loginName }" />
					</div>
				</div>
				
				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						<span class="red">*</span>
						中文名称：
					</label>
					<div class="col-xs-9">
						<input type="text" name="userName" class="form-control" maxlength="20" value="${userName }" />
					</div>
				</div>

				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						<span class="red">*</span>
						密码：
					</label>
					<div class="col-xs-9">
						<input type="password" name="loginPwd" class="form-control" maxlength="20" value="${loginPwd }" />
					</div>
				</div>
				
				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						<span class="red">*</span>
						确认密码：
					</label>
					<div class="col-xs-9">
						<input type="password" name="reLoginPwd" class="form-control" maxlength="20" value="${reLoginPwd }" />
					</div>
				</div>
				
				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						<span class="red">*</span>
						E-mail：
					</label>
					<div class="col-xs-9">
						<input type="text" name="email" class="form-control" maxlength="50" value="${email }" />
					</div>
				</div>
				
				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						<span class="red">*</span>
						手机：
					</label>
					<div class="col-xs-9">
						<input type="text" name="phonenum" class="form-control" maxlength="11" value="${phonenum }" />
					</div>
				</div>
				
				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						所属单位：
					</label>
					<div class="col-xs-9">
						<input type="text" name="ssdw" class="form-control" maxlength="200" value="${ssdw }" />
					</div>
				</div>
				
				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						<span class="red">*</span>
						验证码：
					</label>
					<div class="col-xs-9">
						<div class=" col-xs-6" style="padding: 0">
							<input type="text" name="yzm" class="form-control" maxlength="4" />
						</div>
						<div class=" col-xs-6">
							<img style="height: 100%" src="${basePath }/authCode" onclick="this.src = '${basePath }/authCode?rand=' + Math.random()" />
						</div>
					</div>
				</div>
				
				<div class="container-fluid form-group">
					<label class="col-xs-3 form-control-label">
						<span class="red">*</span>
						激活方式：
					</label>
					<div class="col-xs-9">
						<div class="radio-custom" style="word-break: keep-all;float: left;margin-right: 33px;">
							<input id="yz1" name="yzfs" type="radio" value="YX" <c:if test="${yzfs eq 'YX' or empty yzfs}">checked="checked"</c:if> style="outline: none;" />
							<label for="yz1" class="checkbox" style="height: auto;line-height: normal;">邮箱</label>
						</div>
						<div class="radio-custom" style="word-break: keep-all;float: left;">
							<input id="yz2" name="yzfs" type="radio" value="DX" <c:if test="${yzfs eq 'DX'}">checked="checked"</c:if> style="outline: none;" />
							<label for="yz2" class="checkbox" style="height: auto;line-height: normal;">短信</label>
						</div>
					</div>
				</div>
				
				<div class="form-group text-xs-center">
					<button class="btn btn-primary" type="submit">注册</button>		
					<button class="btn" type="button" onclick="window.location.href = '${basePath}/otherLogin';">返回</button>
				</div>
			</form>
		</div>
		<div class="col-xs-3 col-md-4 col-lg-5 col-xl-6">
			<div class="form-horizontal container" id="errorMessageContent">
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${loginNameCode }
					</label>
				</div>
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${userNameCode }
					</label>
				</div>
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${loginPwdCode }
					</label>
				</div>
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${reLoginPwdCode }
					</label>
				</div>
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${emailCode }
					</label>
				</div>
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${phonenumCode }
					</label>
				</div>
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${ssdwCode }
					</label>
				</div>
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${yzmCode }
					</label>
				</div>
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${yzfsCode }
					</label>
				</div>
			</div>
		</div>
		<div class="col-xs-12">
			<div class="form-horizontal container" id="errorMessageContent2">
				<div class="container-fluid form-group">
					<label class="form-control-label red">
						${ErrorCode }
					</label>
				</div>
			</div>
		</div>
	</div>
	</section>
	
	<%@ include file="/WEB-INF/jsp/importFooter.jsp"%>
	<%@ include file="/WEB-INF/jsp/importCommonJS.jsp"%>
	
	<script>
	$(function(){
		$("#registerForm").find("input").bind('focus',function(){
			if($("#errorMessageContent,#errorMessageContent2").is(":visible")){
				$("#errorMessageContent,#errorMessageContent2").hide();
			}
		});
	})
	</script>
</body>
</html>